package ds.safelock.ui;

public class Popup {

	public static void Information(java.awt.Component context,String message)
	{ javax.swing.JOptionPane.showMessageDialog(context, message, "SafeLock :: Information", javax.swing.JOptionPane.INFORMATION_MESSAGE, null); }
	
	public static void Error(java.awt.Component context,String message)
	{ javax.swing.JOptionPane.showMessageDialog(context, message, "SafeLock :: Error", javax.swing.JOptionPane.ERROR_MESSAGE, null); }
	
	public static boolean Question(java.awt.Component context,String message)
	{ return javax.swing.JOptionPane.showOptionDialog(context, message, "SafeLock :: Question", 
												javax.swing.JOptionPane.YES_NO_OPTION, javax.swing.JOptionPane.QUESTION_MESSAGE, 
												null, new Object[]{"Yes","No"},null)==javax.swing.JOptionPane.YES_OPTION; }
}
